package statusModel;

public class AfterWorkState extends State {

    @Override
    public void WriteProgroam(Work w) {
        if (w.getHour() < 22) {
            System.out.println("现在是下班时间" + w.getHour());
        } else {
            w.setCurrent(new SleepState());
        }
    }

}
